/*
 * Copyright 2013 University of Padua, Italy
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package it.dei.unipd.healthservice.resource;

import java.sql.Date;

/**
 * Rappresenta i dati di un Reclamo.
 * 
 * @author Nichele Dany
 * @version 1.00
 */
public class Reclamo {

	/**
	 * Codice reclamo
	 */
	private int codice;
	/**
	 * stato globale reclamo
	 */
	private  String statoGlobale;
	/**
	 * data Apertura reclamo
	 */
	private Date dataApertura;
	/**
	 * riferimento id ordine
	 */
	private final int idOrdine;
	
	
	/**
	 * Crea un nuovo Reclamo.
	 *
	 * @param dataApertura
	 * 			data apertura del reclamo
	 * @param statoGlobale
	 * 			stato globale del reclamo
	 * @param idOrdine
	 * 			riferimento al codice dell'ordine
	 */
	
	

	public Reclamo(String statoGlobale, int idOrdine) {
		
		this.statoGlobale = statoGlobale;
		this.idOrdine = idOrdine;
	}
	
	


	public Reclamo(int codice, String statoGlobale, Date dataApertura,
			int idOrdine) {
		this.codice = codice;
		this.statoGlobale = statoGlobale;
		this.dataApertura = dataApertura;
		this.idOrdine = idOrdine;
	}

	



	public String getStatoGlobale() {
		return statoGlobale;
	}


	public void setStatoGlobale(String statoGlobale) {
		this.statoGlobale = statoGlobale;
	}


	public int getCodice() {
		return codice;
	}


	public Date getDataApertura() {
		return dataApertura;
	}


	public int getIdOrdine() {
		return idOrdine;
	}

	public void setCodice(int codice)
	{
		this.codice=codice;
	}
	
	public void setDataApertura(Date d)
	{
		dataApertura = d;
	}
	

}
